-
Notifications
You must be signed in to change notification settings - Fork 0
๐ :: [#725] - H2 ์ง์ #726
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughApplicationType์ Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor User as ์ฌ์ฉ์
participant CreateSvc as CreateDockerFileServiceImpl
participant FC as FileContent
User->>CreateSvc: Dockerfile ์์ฑ ์์ฒญ (ApplicationType, version, port, env)
alt ApplicationType == H2_DB
CreateSvc->>FC: getH2DBDockerFileContent(version, port, env)
FC-->>CreateSvc: H2 Dockerfile ๋ด์ฉ ๋ฐํ
else ๊ธฐํ ํ์
CreateSvc->>FC: ํด๋น ํ์
์ฉ Dockerfile ์์ฑ ํจ์ ํธ์ถ
FC-->>CreateSvc: Dockerfile ๋ด์ฉ ๋ฐํ
end
CreateSvc-->>User: Dockerfile ๋ฐํ
sequenceDiagram
autonumber
actor User as ์ฌ์ฉ์
participant VerSvc as GetApplicationVersionServiceImpl
participant CmdPort as CommandPort
User->>VerSvc: ์ด๋ฏธ์ง ๋ฒ์ ์กฐํ ์์ฒญ (ApplicationType)
alt ApplicationType == H2_DB
Note right of VerSvc: baseImageName = "oscarfonts/h2"\nminVersion = "0"
else ๊ธฐํ ํ์
Note right of VerSvc: ํ์
๋ณ baseImageName / minVersion ๊ฒฐ์
end
VerSvc->>CmdPort: ๋ฒ์ ํ์ธ ์คํฌ๋ฆฝํธ ์์ฑ ๋ฐ ์คํ
CmdPort-->>VerSvc: ์คํ ๊ฒฐ๊ณผ ๋ฐํ
VerSvc-->>User: ๋ฒ์ ์ ๋ณด ๋ฐํ
Estimated code review effort๐ฏ 3 (Moderate) | โฑ๏ธ ~20 minutes Possibly related PRs
Suggested labels
Poem
Pre-merge checks and finishing touchesโ Failed checks (1 warning)
โ Passed checks (2 passed)
โจ Finishing touches
๐งช Generate unit tests (beta)
๐ Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro ๐ Files selected for processing (1)
๐ง Files skipped from review as they are similar to previous changes (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
๐งน Nitpick comments (1)
src/main/kotlin/com/dcd/server/core/domain/application/service/impl/GetApplicationVersionServiceImpl.kt (1)
20-20: minVersion์ ์ค์ ์กด์ฌํ๋ H2 ๋ฒ์ ์ผ๋ก ์ค์ ํ์ธ์
minVersion = "0"์ ์ ํจํ ๋ฒ์ ๋ฒ์๊ฐ ์๋๋๋ค. ์ฌ์ฉ ๊ฐ๋ฅํ ์ต์ ํ๊ทธ๋1.3.176์ด๋ฏ๋ก, ์๋ฅผ ๋ค์ด"1.3.176"๋๋"1.4.199"์ด์์ผ๋ก ๋ณ๊ฒฝํ์ธ์.
๐ Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
๐ Files selected for processing (4)
src/main/kotlin/com/dcd/server/core/common/file/FileContent.kt(1 hunks)src/main/kotlin/com/dcd/server/core/domain/application/model/enums/ApplicationType.kt(1 hunks)src/main/kotlin/com/dcd/server/core/domain/application/service/impl/CreateDockerFileServiceImpl.kt(1 hunks)src/main/kotlin/com/dcd/server/core/domain/application/service/impl/GetApplicationVersionServiceImpl.kt(1 hunks)
โฐ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
- GitHub Check: Build and Test
๐ Additional comments (3)
src/main/kotlin/com/dcd/server/core/common/file/FileContent.kt (1)
50-56: LGTM!H2 DB์ฉ Dockerfile ํ ํ๋ฆฟ์ด ๊ธฐ์กด ๋ฐ์ดํฐ๋ฒ ์ด์ค ํ ํ๋ฆฟ๋ค(MySQL, MariaDB, Redis)๊ณผ ์ผ๊ด๋ ํจํด์ผ๋ก ๊ตฌํ๋์์ต๋๋ค.
src/main/kotlin/com/dcd/server/core/domain/application/model/enums/ApplicationType.kt (1)
8-9: LGTM!H2_DB enum ๊ฐ์ด ์ฌ๋ฐ๋ฅด๊ฒ ์ถ๊ฐ๋์์ผ๋ฉฐ, ๊ธฐ์กด enum ๊ฐ๋ค๊ณผ ๋ค์ด๋ฐ ์ปจ๋ฒค์ ์ด ์ผ๊ด๋ฉ๋๋ค. ํํ ์ผํ(trailing comma) ์ถ๊ฐ๋ Kotlin ๋ชจ๋ฒ ์ฌ๋ก๋ฅผ ๋ฐ๋ฅด๊ณ ์์ต๋๋ค.
src/main/kotlin/com/dcd/server/core/domain/application/service/impl/CreateDockerFileServiceImpl.kt (1)
84-85: LGTM!H2_DB ํ์ ์ ๋ํ ๋ถ๊ธฐ๊ฐ when ํํ์์ ์ฌ๋ฐ๋ฅด๊ฒ ์ถ๊ฐ๋์์ผ๋ฉฐ, ๊ธฐ์กด ํจํด๊ณผ ์ผ๊ด์ฑ์ ์ ์งํ๊ณ ์์ต๋๋ค.
๊ฐ์
์์ ๋ด์ฉ
์ฒดํฌ๋ฆฌ์คํธ
Summary by CodeRabbit